package parser;

import java.util.HashSet;

public class Scope
{
    private HashSet<String> variable;

    public Scope()
    {
        this.variable = new HashSet<String>();
    }

    public void addVariable(String var)
    {
        this.variable.add(var);
    }

    public boolean lookupVariable(String id)
    {
        return this.variable.contains(id);
    }
}